package com.bawei.lib_base

import androidx.transition.Transition.MatchOrder
import com.google.gson.Gson
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.RequestBody

open class BaseRepo {
    fun mapToJson(map: Map<String, Any>) =
        RequestBody.create("application/json;charset=utf-8".toMediaTypeOrNull(), Gson().toJson(map))
}